const index = require('deepdash/index')

let things = {
  things: [
    { name: 'something', good: false },
    {
      name: 'another thing',
      good: true,
      children: [
        { name: 'child thing 1', good: false },
        { name: 'child thing 2', good: true },
        { name: 'child thing 3', good: false },
      ],
    },
    {
      name: 'something else',
      good: true,
      subItem: { name: 'sub-item', good: false },
      subItem2: { name: 'sub-item-2', good: true },
    },
  ],
};

const pathPropValueMap = index(things)

console.log('mapping path and value: ', pathPropValueMap)
